<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script typet="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>

    <script>
        //自定义JSON数据格式
        var person = {"name":"tom","sex":"男","age":18};
        console.log(person);

        //数组格式
        var persons = {"person":[{"name":"tom","sex":"男","age":18},{"name":"jack","sex":"女","age":20}]};
        console.log(persons);

        //集合格式
        var list = [{"name":"bob","sex":"男","age":25},{"name":"mary","sex":"女","age":23}];
        console.log(list);
    </script>
</head>
<body>

</body>
</html>